import { createApp } from 'vue'
import App from './App.vue'
import Router from "@/router/index";

import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css'
import 'font-awesome/css/font-awesome.min.css'

import * as ElIcon from '@element-plus/icons-vue'

import axios from 'axios'
import service from "@/service";

const app = createApp(App);

// 先全局引用, 回头想弄了再按需导入
app.use(ElementPlus);
Object.keys(ElIcon).forEach(key => {
    app.component(key, ElIcon[key]);
});

app.use(Router).mount('#app');

app.config.globalProperties.axios = axios;
app.config.globalProperties.service = service;
